package com.aliyun.oss;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//自动注入配置
@ConfigurationProperties(prefix = "aliyun.oss")

public class AliOSSProperties {
    private String endpoint;
    private String bucketName;

    public AliOSSProperties() {
    }

    public AliOSSProperties(String endpoint, String bucketName) {
        this.endpoint = endpoint;
        this.bucketName = bucketName;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
}
